Optimal. Leaf size=38 \[ \frac {\tan (e+f x)}{a^2 c^2 f}+\frac {\tan ^3(e+f x)}{3 a^2 c^2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {2815, 3852}
\begin {gather*} \frac {\tan ^3(e+f x)}{3 a^2 c^2 f}+\frac {\tan (e+f x)}{a^2 c^2 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2815
Rule 3852
Rubi steps
\begin {align*} \int \frac {1}{(a+a \sin (e+f x))^2 (c-c \sin (e+f x))^2} \, dx &=\frac {\int \sec ^4(e+f x) \, dx}{a^2 c^2}\\ &=-\frac {\text {Subst}\left (\int \left (1+x^2\right ) \, dx,x,-\tan (e+f x)\right )}{a^2 c^2 f}\\ &=\frac {\tan (e+f x)}{a^2 c^2 f}+\frac {\tan ^3(e+f x)}{3 a^2 c^2 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 29, normalized size = 0.76 \begin {gather*} \frac {\tan (e+f x)+\frac {1}{3} \tan ^3(e+f x)}{a^2 c^2 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.32, size = 30, normalized size = 0.79
method | result | size |
default | \(-\frac {\left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (f x +e \right )\right )}{3}\right ) \tan \left (f x +e \right )}{a^{2} c^{2} f}\) | \(30\) |
risch | \(\frac {4 i \left (3 \,{\mathrm e}^{2 i \left (f x +e \right )}+1\right )}{3 \left ({\mathrm e}^{i \left (f x +e \right )}-i\right )^{3} \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )^{3} f \,a^{2} c^{2}}\) | \(54\) |
norman | \(\frac {-\frac {2 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{a c f}+\frac {4 \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 a c f}-\frac {2 \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{a c f}}{a \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3} c \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{3}}\) | \(99\) |
derivativedivides | error in RationalFunction: argument is not a rational function\ | N/A |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 30, normalized size = 0.79 \begin {gather*} \frac {\tan \left (f x + e\right )^{3} + 3 \, \tan \left (f x + e\right )}{3 \, a^{2} c^{2} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.32, size = 40, normalized size = 1.05 \begin {gather*} \frac {{\left (2 \, \cos \left (f x + e\right )^{2} + 1\right )} \sin \left (f x + e\right )}{3 \, a^{2} c^{2} f \cos \left (f x + e\right )^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 286 vs.
\(2 (32) = 64\).
time = 1.50, size = 286, normalized size = 7.53 \begin {gather*} \begin {cases} - \frac {6 \tan ^{5}{\left (\frac {e}{2} + \frac {f x}{2} \right )}}{3 a^{2} c^{2} f \tan ^{6}{\left (\frac {e}{2} + \frac {f x}{2} \right )} - 9 a^{2} c^{2} f \tan ^{4}{\left (\frac {e}{2} + \frac {f x}{2} \right )} + 9 a^{2} c^{2} f \tan ^{2}{\left (\frac {e}{2} + \frac {f x}{2} \right )} - 3 a^{2} c^{2} f} + \frac {4 \tan ^{3}{\left (\frac {e}{2} + \frac {f x}{2} \right )}}{3 a^{2} c^{2} f \tan ^{6}{\left (\frac {e}{2} + \frac {f x}{2} \right )} - 9 a^{2} c^{2} f \tan ^{4}{\left (\frac {e}{2} + \frac {f x}{2} \right )} + 9 a^{2} c^{2} f \tan ^{2}{\left (\frac {e}{2} + \frac {f x}{2} \right )} - 3 a^{2} c^{2} f} - \frac {6 \tan {\left (\frac {e}{2} + \frac {f x}{2} \right )}}{3 a^{2} c^{2} f \tan ^{6}{\left (\frac {e}{2} + \frac {f x}{2} \right )} - 9 a^{2} c^{2} f \tan ^{4}{\left (\frac {e}{2} + \frac {f x}{2} \right )} + 9 a^{2} c^{2} f \tan ^{2}{\left (\frac {e}{2} + \frac {f x}{2} \right )} - 3 a^{2} c^{2} f} & \text {for}\: f \neq 0 \\\frac {x}{\left (a \sin {\left (e \right )} + a\right )^{2} \left (- c \sin {\left (e \right )} + c\right )^{2}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 30, normalized size = 0.79 \begin {gather*} \frac {\tan \left (f x + e\right )^{3} + 3 \, \tan \left (f x + e\right )}{3 \, a^{2} c^{2} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.84, size = 63, normalized size = 1.66 \begin {gather*} -\frac {2\,\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (3\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4-2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+3\right )}{3\,a^2\,c^2\,f\,{\left ({\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2-1\right )}^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________